/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 成员[SysMemberDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("成员DTO")
public class SysMemberDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 创建人
     */
    @JsonProperty("creator")
    @JSONField(name = "creator")
    @ApiModelProperty(value = "创建人", position = 1)
    private String creator;

    /**
     * 创建时间
     */
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "create_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", position = 2)
    private Date createTime;

    /**
     * 最后更新人
     */
    @JsonProperty("updater")
    @JSONField(name = "updater")
    @ApiModelProperty(value = "最后更新人", position = 3)
    private String updater;

    /**
     * 最后更新时间
     */
    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "update_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后更新时间", position = 4)
    private Date updateTime;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 5)
    private String dc;

    /**
     * 用户组标识
     */
    @JsonProperty("organizational_role_id")
    @JSONField(name = "organizational_role_id")
    @ApiModelProperty(value = "用户组标识", position = 6)
    private String organizationalRoleId;

    /**
     * 用户组名称
     */
    @JsonProperty("organizational_role_name")
    @JSONField(name = "organizational_role_name")
    @ApiModelProperty(value = "用户组名称", position = 7)
    private String organizationalRoleName;

    /**
     * 部门标识
     */
    @JsonProperty("department_id")
    @JSONField(name = "department_id")
    @ApiModelProperty(value = "部门标识", position = 8)
    private String departmentId;

    /**
     * 部门编号
     */
    @JsonProperty("department_number")
    @JSONField(name = "department_number")
    @ApiModelProperty(value = "部门编号", position = 9)
    private String departmentNumber;

    /**
     * 部门名称
     */
    @JsonProperty("department_name")
    @JSONField(name = "department_name")
    @ApiModelProperty(value = "部门名称", position = 10)
    private String departmentName;

    /**
     * 组织机构标识
     */
    @JsonProperty("organization_id")
    @JSONField(name = "organization_id")
    @ApiModelProperty(value = "组织机构标识", position = 11)
    private String organizationId;

    /**
     * 机构编号
     */
    @JsonProperty("organization_number")
    @JSONField(name = "organization_number")
    @ApiModelProperty(value = "机构编号", position = 12)
    private String organizationNumber;

    /**
     * 组织机构名称
     */
    @JsonProperty("organization_name")
    @JSONField(name = "organization_name")
    @ApiModelProperty(value = "组织机构名称", position = 13)
    private String organizationName;

    /**
     * 人员标识
     */
    @JsonProperty("person_id")
    @JSONField(name = "person_id")
    @ApiModelProperty(value = "人员标识", position = 14)
    private String personId;

    /**
     * 人员名称
     */
    @JsonProperty("display_name")
    @JSONField(name = "display_name")
    @ApiModelProperty(value = "人员名称", position = 15)
    private String displayName;

    /**
     * uid
     */
    @JsonProperty("uid")
    @JSONField(name = "uid")
    @ApiModelProperty(value = "uid", position = 16)
    private String uid;

    /**
     * 排序
     */
    @JsonProperty("sort")
    @JSONField(name = "sort")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "排序", position = 17)
    private Long sort;

    /**
     * DN
     */
    @JsonProperty("dn")
    @JSONField(name = "dn")
    @ApiModelProperty(value = "DN", position = 18)
    private String dn;

    /**
     * ENABLED
     */
    @JsonProperty("enabled")
    @JSONField(name = "enabled")
    @ApiModelProperty(value = "ENABLED", position = 19)
    private Integer enabled;


    /**
     * 设置 [DC]
     */
    public SysMemberDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [用户组标识]
     */
    public SysMemberDTO setOrganizationalRoleId(String organizationalRoleId) {
        this.organizationalRoleId = organizationalRoleId;
        this.modify("organizational_role_id", organizationalRoleId);
        return this;
    }

    /**
     * 设置 [用户组名称]
     */
    public SysMemberDTO setOrganizationalRoleName(String organizationalRoleName) {
        this.organizationalRoleName = organizationalRoleName;
        this.modify("organizational_role_name", organizationalRoleName);
        return this;
    }

    /**
     * 设置 [部门标识]
     */
    public SysMemberDTO setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.modify("department_id", departmentId);
        return this;
    }

    /**
     * 设置 [部门编号]
     */
    public SysMemberDTO setDepartmentNumber(String departmentNumber) {
        this.departmentNumber = departmentNumber;
        this.modify("department_number", departmentNumber);
        return this;
    }

    /**
     * 设置 [部门名称]
     */
    public SysMemberDTO setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
        this.modify("department_name", departmentName);
        return this;
    }

    /**
     * 设置 [组织机构标识]
     */
    public SysMemberDTO setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
        this.modify("organization_id", organizationId);
        return this;
    }

    /**
     * 设置 [机构编号]
     */
    public SysMemberDTO setOrganizationNumber(String organizationNumber) {
        this.organizationNumber = organizationNumber;
        this.modify("organization_number", organizationNumber);
        return this;
    }

    /**
     * 设置 [组织机构名称]
     */
    public SysMemberDTO setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
        this.modify("organization_name", organizationName);
        return this;
    }

    /**
     * 设置 [人员标识]
     */
    public SysMemberDTO setPersonId(String personId) {
        this.personId = personId;
        this.modify("person_id", personId);
        return this;
    }

    /**
     * 设置 [人员名称]
     */
    public SysMemberDTO setDisplayName(String displayName) {
        this.displayName = displayName;
        this.modify("display_name", displayName);
        return this;
    }

    /**
     * 设置 [uid]
     */
    public SysMemberDTO setUid(String uid) {
        this.uid = uid;
        this.modify("uid", uid);
        return this;
    }

    /**
     * 设置 [排序]
     */
    public SysMemberDTO setSort(Long sort) {
        this.sort = sort;
        this.modify("sort", sort);
        return this;
    }

    /**
     * 设置 [DN]
     */
    public SysMemberDTO setDn(String dn) {
        this.dn = dn;
        this.modify("dn", dn);
        return this;
    }

    /**
     * 设置 [ENABLED]
     */
    public SysMemberDTO setEnabled(Integer enabled) {
        this.enabled = enabled;
        this.modify("enabled", enabled);
        return this;
    }


}
